<!DOCTYPE html>
<html >
<head>
	<meta charset="UTF-8">
	<title>blog</title>
	<link href="<?php echo base_url();?>public/css/bootstrap.min.css" rel="stylesheet">
	<link href="<?php echo base_url();?>public/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
  <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/style/style.css">
</head>
<body>
<!--*******************************header************************************************************** -->
  <?php
    $this->load->view("header.php");
  ?>
<!--*********************************************banner**************************************************************** -->
  <div id="banner" >
    <img src="<?php echo base_url();?>public/images/2.jpg">
  </div>
  
<!--*********************************************article**************************************************************** -->
  <br />
    <div class="container">
      <h2 class="title_tj"><font style="background:#fff;padding-right:10px;">文章<span>推荐</span></font></h2>
      <br />
      <div class="row">
        <div class="col-md-8">
          <?php foreach ($articles as  $article) {?>
              <div class="item">
                <p class="item_title">
                <a href="<?php echo site_url("Article/view/".$article->id) ;?>"><?php echo $article->title?></a>
                <span class="pull-right"><?php echo $article->view?>次浏览</span>
                </p>
                  <div class="item_body clearfix">
                    <img class="item_img thumbnail" src="<?php echo base_url();?>public/<?php echo $article->img;?>">
                    <p class="item_desc"><?php echo $article->desc?></p>
                    <a class="item_viewall btn btn-success" href="<?php echo site_url("Article/view/".$article->id) ;?>">阅读全文</a>
                    <p class="item_time"><i class="glyphicon glyphicon-time"></i><?php echo date("Y-m-d",$article->create_time)?></p>
                </div>
              </div>
              <hr />
        <?php }?>
        </div>
        <div class="col-md-4">eeeeee</div> 
      </div>
    </div> 
<!--**************************************************分页*************************************************************-->
  <div class="row">
      <div class="col-md-4 col-md-offset-4">
      <?php echo ($this->pagination->create_links()) ;?>
      </div>
    </div>
</body>
</html>